<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	<body>
	<ul>
		<h:form>
			<li><h:commandLink action="home">Home</h:commandLink></li>

			<li><h:commandLink action="login"
				rendered="#{!authenticatorBean.logado}">Login</h:commandLink></li>

			<li><h:commandLink action="#{authenticatorBean.logout}"
				rendered="#{authenticatorBean.logado}">Sair</h:commandLink></li>

			<li><h:commandLink action="tags"
				rendered="#{authenticatorBean.admin}">Tags</h:commandLink></li>

			<li><h:commandLink action="perguntas" value="Perguntas"
				rendered="#{authenticatorBean.logado}"></h:commandLink></li>

			<li><h:commandLink action="#{perguntaBean.unAnswered}" value="Sem resposta" /></li>

			<li><h:commandLink action="#{usuarioBean.listRanking}" value="Ranking"/></li>

			<li><h:commandLink action="perguntar" value="Enviar pergunta" /></li>
		</h:form>
	</ul>
	</body>
</ui:composition>